/*
** disp_err.c for rt in /home/le_e//project/project_b2/raytracer/init_config
** 
** Made by canh-kiet le
** Login   <le_e@epitech.net>
** 
** Started on  Mon Apr 30 21:31:30 2012 canh-kiet le
** Last update Mon Apr 30 21:31:48 2012 canh-kiet le
*/

#include	"rt.h"

void		disp_err(char *name_err, int line_err, char *err_desc)
{
  print_err("[Error]: ");
  if (name_err)
    {
      print_err(name_err);
      print_err("\n");
    }
  print_err(err_desc);
  print_err("\n");
  if (line_err)
    {
      print_err("At line -> ");
      my_put_nbr(line_err, 2);
      print_err("\n");
    }
  exit(EXIT_FAILURE);
}
